home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Magnum One
/
Magnum One (Mid-American Digital) (Disc Manufacturing).iso
/
d12
/
tur_c_tu.arc
/
SOURCE.ARC
/
SIMPLEIO.C
< prev
next >
Wrap
C/C++ Source or Header
|
1989-04-01
|
472b
|
17 lines
/* Chapter 9 - Program 1 */
#include "stdio.h" /* standard header for input/output */
main()
{
char c;
printf("Enter any characters, X = halt program.\n");
do {
c = getchar(); /* get a single character from the kb */
putchar(c); /* display the character on the monitor */
} while (c != 'X'); /* until an X is hit */
printf("\nEnd of program.\n");
}